#include "public_head.h"
#include "event_app.h"


void eventHandle(void)
{
    if(false != EventMask.SBP_INTERRUPT_TAMPER_PROOF_EVT)
    {
        EventMask.SBP_INTERRUPT_TAMPER_PROOF_EVT = false;
        GR_LOG(" [event] SBP_INTERRUPT_TAMPER_PROOF_EVT \r\n");
        if(KERNEL_TASK_STATUS_SUSPEND == taskGather.tamperTaskHandle->taskStatus)
        {
            xStartTask(taskGather.tamperTaskHandle, 10);
        }
        
    }
    
    if(false != EventMask.SBP_INTERRUPT_G_SENSOR_EVT)
    {
        EventMask.SBP_INTERRUPT_G_SENSOR_EVT = false;
        GR_LOG(" [event] SBP_INTERRUPT_G_SENSOR_EVT \r\n");
        kxtj3_irq_callback();
        
    }
    
    if(false != EventMask.SBP_ALARM_TAMPER_PROOF_EVT)
    {
        EventMask.SBP_ALARM_TAMPER_PROOF_EVT = false;
        GR_LOG(" [event] SBP_ALARM_TAMPER_PROOF_EVT \r\n");
        
    }
}



